package com.xiaoniu.lib_keleim;

public enum MessageType {


    //私聊消息
    TEXT(1, "私聊文本消息"),
    IMAGE(2, "私聊图片消息"),
    TIPS(10, "私聊提示消息"),

    SYSTEM_NOTE(180, "系统公告"),
    SYSTEM_MSG(181, "系统消息"),


    JOIN_ROOM(200, "加入房间"),
    QUIT_ROOM(201, "退出房间");


    private int type;
    private String name;

    private MessageType(int type, String name) {
        this.type = type;
        this.name = name();
    }

    public int getType() {
        return type;
    }

    public int getP2PType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

}